﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Condimar.UI
{
    public partial class FrmMenu : Form
    {
        public FrmMenu()
        {
            InitializeComponent();
        }

        private void registrarMarcaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarMarca frm = new FrmBuscarMarca();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarMarcaToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            FrmRegistrarMarca frm = new FrmRegistrarMarca();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarVendedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarVendedor frm = new FrmBuscarVendedor();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarVendedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarVendedor frm = new FrmRegistrarVendedor();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarClienteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarCliente frm = new FrmBuscarCliente();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarClieneteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarCliente frm = new FrmRegistrarCliente();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarCategoríaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarCategoria frm = new FrmBuscarCategoria();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarCategoríaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarCategoria frm = new FrmRegistrarCategoria();
            frm.NuevaCategoria();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarProveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarProveedor frm = new FrmBuscarProveedor();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarProveedorToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarProveedor frm = new FrmRegistrarProveedor();
            frm.NuevoProveedor();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarTipoComprobanteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarTipoComprobante frm = new FrmBuscarTipoComprobante();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarTipoComprobanteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarTipoComprobante frm = new FrmRegistrarTipoComprobante();
            frm.NuevaTipoComprobante();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarUnidadMedidaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarUnidadMedida frm = new FrmBuscarUnidadMedida();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarUnidadMedidaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarUnidadMedida frm = new FrmRegistrarUnidadMedida();
            frm.NuevaUnidadMedida();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarProductoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarProducto frm = new FrmBuscarProducto();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarProductoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarProducto frm = new FrmRegistrarProducto();
            frm.NuevoProducto();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarFormaDePagoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarFormaPago frm = new FrmBuscarFormaPago();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarFormaDePagoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarFormaPago frm = new FrmRegistrarFormaPago();
            frm.Nuevo();
            frm.MdiParent = this;
            frm.Show();
        }

        private void buscarVentaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBuscarVenta frm = new FrmBuscarVenta();
            frm.MdiParent = this;
            frm.Show();
        }

        private void registrarVentaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmRegistrarVenta frm = new FrmRegistrarVenta();
            frm.NuevaVenta();
            frm.MdiParent = this;
            frm.Show();
        }
    }
}
